package cn.sinata.wanglin.adapter;
import com.xilada.xldutils.adapter.HFRecyclerAdapter;
import com.xilada.xldutils.adapter.util.ViewHolder;
import java.util.List;
import cn.sinata.wanglin.R;
import cn.sinata.wanglin.model.Myrepair;
import cn.sinata.wanglin.utils.RelativeDateFormat;

public class MyrepairAdapter extends HFRecyclerAdapter<Myrepair> {
        public MyrepairAdapter(List<Myrepair> mData) {
        super(mData, R.layout.item_repair);
    }
    @Override
    public void onBind(int position, Myrepair data, ViewHolder holder) {
        holder.setText(R.id.tv_villagename,"报修小区："+data.getHousingName());
        holder.setText(R.id.tv_projectname,"申请项目："+data.getProject());
        holder.setText(R.id.tv_bespokeDate,"预约时间："+ RelativeDateFormat.getTimeYMDHMS(data.getBespokeDate()));
    }
}
